Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

+*Add and use find_ustar #406

Merged
merged 2 commits into from
Jul 26, 2023

Conversation

Hallberg-NOAA
Copy link
Member

Added the new public interface find_ustar to extract the friction velocity from either a forcing type argument, or a mech_forcing_type argument, either directly or from tau_mag, and in non-Boussinesq mode by using the time-evolving surface specific volume. Find_ustar is an overloaded interface to find_ustar_fluxes or find_ustar_mech_forcing, which are the same but for the type of one of their arguments. For now, the subroutines bulkmixedlayer, mixedlayer_restrajt_OM4, mixedlayer_restrat_Bodner and mixedlayer_restrat_BML are calling find_ustar to avoid code duplication during the transition to work in fully non-Boussinesq mode, but it will eventually be used in about another half dozen other places.

All Boussinesq answers are bitwise identical, but non-Boussinesq answers will change and become less dependent on the Boussinesq reference density, and there is a new publicly visible interface wrapping two subroutines.

  Added the new public interface find_ustar to extract the friction velocity
from either a forcing type argument, or a mech_forcing_type argument, either
directly or from tau_mag, and in non-Boussinesq mode by using the time-evolving
surface specific volume.  Find_ustar is an overloaded interface to
find_ustar_fluxes or find_ustar_mech_forcing, which are the same but for the
type of one of their arguments.  For now, the subroutines bulkmixedlayer,
mixedlayer_restrajt_OM4, mixedlayer_restrat_Bodner and mixedlayer_restrat_BML
are calling find_ustar to avoid code duplication during the transition to work
in fully non-Boussinesq mode, but it will eventually be used in about another
half dozen other places.

  All Boussinesq answers are bitwise identical, but non-Boussinesq answers will
change and become less dependent on the Boussinesq reference density, and there
is a new publicly visible interface wrapping two subroutines.
@codecov
Copy link

codecov bot commented Jul 18, 2023

Codecov Report

Merging #406 (3fc724d) into dev/gfdl (e465b1f) will increase coverage by 0.00%.
The diff coverage is 43.05%.

❗ Current head 3fc724d differs from pull request most recent head 029f799. Consider uploading reports for the commit 029f799 to get more accurate results

@@            Coverage Diff            @@
##           dev/gfdl     #406   +/-   ##
=========================================
  Coverage     38.15%   38.16%           
=========================================
  Files           269      269           
  Lines         76675    76712   +37     
  Branches      14105    14113    +8     
=========================================
+ Hits          29256    29276   +20     
- Misses        42150    42161   +11     
- Partials       5269     5275    +6     
Files Changed Coverage Δ
src/core/MOM_forcing_type.F90 41.37% <25.92%> (-0.58%) ⬇️
...ameterizations/lateral/MOM_mixed_layer_restrat.F90 77.00% <92.85%> (+0.19%) ⬆️
...arameterizations/vertical/MOM_bulk_mixed_layer.F90 48.35% <100.00%> (+0.07%) ⬆️

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Hallberg-NOAA Hallberg-NOAA added enhancement New feature or request answer-changing A change in results (actual or potential) labels Jul 23, 2023
Copy link

@herrwang0 herrwang0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is correctly implemented.

Copy link

@theresa-cordero theresa-cordero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes seem to match the description given and there are no obvious typos.

@marshallward
Copy link
Member

Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/20038 ✔️

@marshallward marshallward merged commit 636d610 into NOAA-GFDL:dev/gfdl Jul 26, 2023
@Hallberg-NOAA Hallberg-NOAA deleted the add_find_ustar branch July 26, 2023 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answer-changing A change in results (actual or potential) enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants